/**
 * Copyright (C) 2015 Red Hat, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.neucloud.da.edgeside.model.online;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonDeserializer.None;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.model.KubernetesResource;

@JsonDeserialize(
        using = None.class
)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InferenceServicePredictor implements KubernetesResource {

  @JsonProperty("model")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private InferenceServicePredictorDesc model;

  @JsonProperty("serviceAccountName")
  private String serviceAccountName;

  @JsonProperty("pytorch")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private InferenceServicePredictorDesc pytorch;

  @JsonProperty("tensorflow")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private InferenceServicePredictorDesc tensorflow;

  @JsonProperty("sklearn")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private InferenceServicePredictorDesc sklearn;

  @JsonProperty("xgboost")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private InferenceServicePredictorDesc xgboost;

  public String getServiceAccountName() {
    return serviceAccountName;
  }

  public void setServiceAccountName(String serviceAccountName) {
    this.serviceAccountName = serviceAccountName;
  }

  public InferenceServicePredictorDesc getPytorch() {
    return pytorch;
  }

  public void setPytorch(InferenceServicePredictorDesc pytorch) {
    this.pytorch = pytorch;
  }

  public InferenceServicePredictorDesc getTensorflow() {
    return tensorflow;
  }

  public void setTensorflow(InferenceServicePredictorDesc tensorflow) {
    this.tensorflow = tensorflow;
  }

  public InferenceServicePredictorDesc getSklearn() {
    return sklearn;
  }

  public void setSklearn(InferenceServicePredictorDesc sklearn) {
    this.sklearn = sklearn;
  }

  public InferenceServicePredictorDesc getXgboost() {
    return xgboost;
  }

  public void setXgboost(InferenceServicePredictorDesc xgboost) {
    this.xgboost = xgboost;
  }

  public InferenceServicePredictorDesc getModel() {
    return model;
  }

  public void setModel(InferenceServicePredictorDesc model) {
    this.model = model;
  }
}
